<template>
  <div class="search" @click="handleSearchPage">
    <div class="search-header">
      <img class="search-img" src="//cs-static-assets.oss-cn-beijing.aliyuncs.com/jiudao_miniapp/search.png" alt="搜索image ">
      <span>&nbsp;搜索图书名称</span>
    </div>
  </div>
</template>

<script>
  export default {
    methods: {
      handleSearchPage() {
        this.$emit('searchPageShow')
      }
    },
  }
</script>

<style scoped>
.search {
  position: fixed;
  background-color: #fff;
  width: 100%;
  height: 130rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-header {
  height: 80rpx;
  width: 600rpx;
  background-color: #eee;
  border-radius: 20px;
  font-size: 28rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #bbb;
}
.search-img {
  width: 30rpx;
  height: 30rpx;
}
</style>